
package processor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.e885.log.E885Logger;

/**
 * 測試 Spring 何時呼叫 method postProcessorBeforeInitialization()
 * 
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class PostProcessorBeforeInitializationTester
{
	public PostProcessorBeforeInitializationTester()
	{
		ApplicationContext context = new ClassPathXmlApplicationContext( "processor/postProcessorAfterInitialization.xml" );

		PostProcessorBean bean = ( PostProcessorBean )context.getBean( "postProcessorBean" );

		E885Logger.testLog.debug( "name:[" + bean.getName() + "]" );
	}

	/**
	 * @param args
	 */
	public static void main( String[] args )
	{
		new PostProcessorBeforeInitializationTester();
	}

}
